<!DOCTYPE html>
<html>
<head>
    {include file="layout:_meta_index" /}
</head>
<body class="layui-layout-body">
<div class="layui-fluid">
    <table id="listTable" lay-filter="listTable"></table>
</div>

{include file="layout:_footer" /}
<script src="__static__/admin/lib/jquery/1.9.1/jquery.js"></script>
<script>
    var  order_id = {$order_id};
    layui.config({
        base: '__static__/admin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'table','common'], function() {
        var $ = layui.$
            , common = layui.common
            , form = layui.form
            , table = layui.table;

        //数据列表
        table.render({
            elem: '#listTable',
            url: "{:url('index/console_order')}",
            where:{order_id:order_id},
           // toolbar: '#listTableToolbar',
            totalRow:true,
            cols: [[
                {field: 'id', title: 'ID', align: "center"},
                {field: 'goods_name', title: '商品名', align: 'center'},
                {field: 'goods_attr', title: '规格', align: 'center'},
                {field: 'goods_price', title: '销售价', align: 'center'},
                {field: 'goods_num', title: '销售数量', align: 'center',totalRow:true},
                {field: 'total_price', title: '小计金额', align: 'center',totalRow:true},
            ]],
            page: false //是否显示分页
           // ,limits: [10, 15, 20, 25, 30]//显示
           // ,limit: 15 //每页默认显示的数量
            , height: document.documentElement.clientHeight / 5 * 4
        });
    });
</script>

</body>
</html>


